package thread.pool;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.Socket;

public class Client {

	public static void main(String[] args) {
		try (Socket socket = new Socket("localhost", 9000);

		DataInputStream in = new DataInputStream(socket.getInputStream())) {

			System.out.println("Server says " + in.readUTF());

		} catch (IOException ex) {
			System.out.println(ex.toString());
		}

	}
}
